export default {
    state:{
        isCollapse:false,
        currentMenu:null,
        tabList:[
            {
                path:'/',
                name:'home',
                label:'首页',
                icon:'home'
            }
        ]
    },
    mutations:{
        collapseMenu(state){
            state.isCollapse = !state.isCollapse
        },
        selectMenu(state,val){
            val.name === 'home' ?(state.currentMenu = null) : state.currentMenu=val
        }
    }
}